package com.ruoyi.project.records.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

public class CheckRecords extends BaseEntity {
    private Integer examId;
    private String examName;
    private Double examOnePrice;
    private String patiName;
    private String checkstatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
    private Date createTime;
    private String creatBy;
    private Integer count;

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public CheckRecords() {
    }

    public CheckRecords(Integer examId, String examName, Double examOnePrice, String patiName, String checkstatus, Date createTime, String creatBy) {
        this.examId = examId;
        this.examName = examName;
        this.examOnePrice = examOnePrice;
        this.patiName = patiName;
        this.checkstatus = checkstatus;
        this.createTime = createTime;
        this.creatBy = creatBy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CheckRecords that = (CheckRecords) o;
        return Objects.equals(examId, that.examId) &&
                Objects.equals(examName, that.examName) &&
                Objects.equals(examOnePrice, that.examOnePrice) &&
                Objects.equals(patiName, that.patiName) &&
                Objects.equals(checkstatus, that.checkstatus) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(creatBy, that.creatBy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(examId, examName, examOnePrice, patiName, checkstatus, createTime, creatBy);
    }

    @Override
    public String toString() {
        return "CheckRecords{" +
                "examId=" + examId +
                ", examName='" + examName + '\'' +
                ", examOnePrice=" + examOnePrice +
                ", patiName='" + patiName + '\'' +
                ", checkstatus='" + checkstatus + '\'' +
                ", createTime=" + createTime +
                ", creatBy='" + creatBy + '\'' +
                '}';
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public Double getExamOnePrice() {
        return examOnePrice;
    }

    public void setExamOnePrice(Double examOnePrice) {
        this.examOnePrice = examOnePrice;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public String getCheckstatus() {
        return checkstatus;
    }

    public void setCheckstatus(String checkstatus) {
        this.checkstatus = checkstatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreatBy() {
        return creatBy;
    }

    public void setCreatBy(String creatBy) {
        this.creatBy = creatBy;
    }
}
